<?php

class Zend_View_Helper_ResizeImage extends Zend_View_Helper_Abstract
{

    public function resizeImage($path, $width, $height)
    {
        $optimizedPath = Manager::getImageUtils()->resize(Manager::getPathPublic().$path, $width, $height);
        return $this->view->reformatBaseUrl(str_replace(Manager::getPathPublic(), '', $optimizedPath));
    }
}